public class DEV521_S80Controller {

  private final Account account;

  public DEV521_S80Controller () {
    if(String.isBlank(ApexPages.currentPage().getParameters().get('id'))){
      account = [select id, name, site from Account limit 1];
    }else{
      account = [select id, name, site from Account where id = :ApexPages.currentPage().getParameters().get('id')];
    }
  }

  public Account getAccount() {
    return account;
  }

  public PageReference save() {
    update account;
    return null;
  }
}